home *** CD-ROM | disk | FTP | other *** search
Text File | 2004-02-09 | 25.2 KB | 1,158 lines |
- function ext_XML_GET_TEXT()
- {
- return this.firstChild.nodeType != 3 ? null : this.firstChild.nodeValue;
- }
- function ext_XML_SET_TEXT(text)
- {
- this.firstChild.nodeValue = text;
- }
- function init()
- {
- parent = this;
- toggle = "en-sp";
- loadXMLDoc("a");
- a.gotoAndStop("rollOver");
- english.gotoAndStop("rollOver");
- english.enabled = false;
- lastClicked = a;
- audioFile = "";
- audioFile2 = "";
- snd = new Sound();
- snd2 = new Sound();
- lastWordClicked;
- dragBar.useHandCursor = false;
- dragBar.onPress = function()
- {
- this._parent.startDrag();
- dragBar.onMouseMove = this.onMouseMoveFunc;
- };
- dragBar.onRelease = function()
- {
- this._parent.stopDrag();
- dragBar.onMouseMove = null;
- };
- dragBar.onMouseMoveFunc = function()
- {
- updateAfterEvent();
- };
- }
- function loadXMLDoc(doc)
- {
- audioIcon.gotoAndStop("disabled");
- audioIcon.enabled = false;
- parent.defHolder.defText.text = "";
- audioFile = "";
- letter = eval(doc);
- letter.enabled = false;
- letter.gotoAndStop("rollOver");
- clearInterval(tempInterval);
- glossXML = new XML();
- glossXML.parent = this;
- glossXML.ignoreWhite = true;
- glossXML.load("glossary/" + toggle + "/" + doc + ".xml");
- PMSI.preloader.queueXML(glossXML,filename);
- glossXML.onLoad = function()
- {
- var st = getTimer();
- var lists = {};
- lists.phrases = this.getElementsByTagName("phrase");
- lists.translations = this.getElementsByTagName("translation");
- lists.audioFiles = this.getElementsByTagName("audioFile");
- this.parent.gScroll.setStyleProperty("background",16777164);
- this.parent.gScroll.setScrollContent("Dummy");
- this.parent.createPhraseList(lists,this.parent.gScroll.getScrollContent());
- this.parent.gScroll.refreshPane();
- delete lists;
- trace("Time: " + (getTimer() - st) / 1000);
- };
- }
- function createPhraseList(lists, container)
- {
- var p = lists.phrases;
- var t = lists.translations;
- var a = lists.audioFiles;
- var tempwc = null;
- var tempText = null;
- var tempwc2 = null;
- var tempText2 = null;
- var i = 0;
- while(i < p.length)
- {
- trace(p[i].text + ": " + t[i].text);
- container.createEmptyMovieClip("wordClip" + i,PMSI.DepthManager.getNextDepth());
- tempwc = container["wordClip" + i];
- tempwc.createTextField("content",PMSI.DepthManager.getNextDepth(),0,0,0,0);
- if(i == 0)
- {
- tempwc._x = 15;
- tempwc._y = 10;
- }
- else
- {
- tempLastText = container["wordClip" + (i - 1)];
- tempwc._x = 15;
- tempwc._y = tempLastText._y + tempLastText._height + 2;
- }
- tempText = tempwc.content;
- tempText.embedFonts = true;
- tempText.setNewTextFormat(parent.tf);
- tempText.autoSize = true;
- tempText.text = p[i].text;
- trace(tempText._width);
- tempText.autoSize = false;
- tempText.wordWrap = true;
- tempText._width = 136;
- tempText.autoSize = true;
- tempwc.clip = {};
- tempwc.clip.audioFile = a[i].text;
- tempwc.clip.def = t[i].text;
- tempwc.clip.phrase = tempText.text;
- tempwc.clip.colorOver = 3368652;
- tempwc.clip.colorOut = 13408563;
- tempwc.onRelease = function()
- {
- trace(this._name + " clicked: " + this.clip.audioFile);
- lastWordClicked.onRollOut();
- lastWordClicked.enabled = true;
- this.enabled = false;
- this.onRollOver();
- lastWordClicked = this;
- parent.defHolder.createTextField("defText",PMSI.DepthManager.getNextDepth(),0,0,0,0);
- parent.defHolder.defText.embedFonts = true;
- parent.defHolder.defText.setNewTextFormat(parent.tf2);
- parent.defHolder.defText.autoSize = true;
- parent.defHolder.defText.selectable = false;
- parent.defHolder.defText.autoSize = false;
- parent.defHolder.defText.wordWrap = true;
- parent.defHolder.defText._width = 160;
- parent.defHolder.defText._height = 100;
- parent.defHolder.defText.autoSize = true;
- if(this.clip.def != null)
- {
- parent.defHolder.defText.text = this.clip.def;
- }
- else
- {
- parent.defHolder.defText.text = " ";
- }
- audioFile = this.clip.audioFile;
- clickedWord();
- };
- tempwc.onRollOver = function()
- {
- var clr = new Color(this);
- clr.setRGB(this.clip.colorOver);
- };
- tempwc.onRollOut = function()
- {
- var clr = new Color(this);
- clr.setRGB(this.clip.colorOut);
- };
- tempwc.onReleaseOutside = function()
- {
- var clr = new Color(this);
- clr.setRGB(this.clip.colorOut);
- };
- container.createEmptyMovieClip("defClip" + i,PMSI.DepthManager.getNextDepth());
- tempwc2 = container["defClip" + i];
- tempwc2.createTextField("word",PMSI.DepthManager.getNextDepth(),0,0,0,0);
- tempText2 = tempwc2.word;
- i++;
- }
- }
- function setLastClicked(letter)
- {
- lastClicked.gotoAndStop("rollOut");
- lastClicked.enabled = true;
- lastClicked = letter;
- }
- function clickedWord()
- {
- trace("Clicked Audio");
- audioFile2 = "";
- var tempAudioFile = audioFile;
- var tempAudioFile2 = "";
- var deFlag = tempAudioFile.indexOf("(de)");
- var aFlag = tempAudioFile.indexOf("(a)");
- var asFlag = tempAudioFile.indexOf("(as)");
- var laFlag = tempAudioFile.indexOf("_(la)_");
- var raFlag = tempAudioFile.indexOf("r(a)");
- if(deFlag != -1)
- {
- audioFileArray = tempAudioFile.split("_(de).mp3");
- tempAudioFile = audioFileArray[0];
- tempAudioFile2 = tempAudioFile + "_de";
- }
- if(aFlag != -1)
- {
- audioFileArray = tempAudioFile.split("(a).mp3");
- tempAudioFile = audioFileArray[0];
- end = tempAudioFile.lastIndexOf("o");
- tempAudioFile2 = tempAudioFile.substring(0,end);
- tempAudioFile2 += "a";
- }
- if(asFlag != -1)
- {
- audioFileArray = tempAudioFile.split("(as).mp3");
- tempAudioFile = audioFileArray[0];
- end = tempAudioFile.lastIndexOf("os");
- tempAudioFile2 = tempAudioFile.substring(0,end);
- tempAudioFile2 += "as";
- }
- if(laFlag != -1 && aFlag == -1 && raFlag == -1)
- {
- audioFileArray = tempAudioFile.split("_(la)_",2);
- tempAudioFile = audioFileArray[0] + "_" + audioFileArray[1];
- tempAudioFile2 = "la_" + audioFileArray[1];
- }
- if(laFlag != -1 && aFlag != -1 && raFlag == -1)
- {
- audioFileArray = tempAudioFile.split("_(la)_",2);
- tempAudioFile = audioFileArray[0] + "_" + audioFileArray[1];
- tempAudioFile2 = "la_" + audioFileArray[1];
- end = tempAudioFile2.lastIndexOf("o");
- tempAudioFile2 = tempAudioFile2.substring(0,end);
- tempAudioFile2 += "a";
- }
- if(laFlag != -1 && raFlag != -1)
- {
- audioFileArray = tempAudioFile.split("_(la)_",2);
- tempAudioFile = audioFileArray[0] + "_" + audioFileArray[1];
- tempAudioFile2 = "la_" + audioFileArray[1];
- tempAudioFile2 += "a";
- }
- if(laFlag == -1 && raFlag != -1)
- {
- audioFileArray = tempAudioFile.split("(a)",2);
- tempAudioFile = audioFileArray[0];
- tempAudioFile2 = tempAudioFile + "a";
- }
- audioFile1 = tempAudioFile;
- audioFile2 = tempAudioFile2;
- if(audioFile1.indexOf(".mp3") == -1)
- {
- audioFile1 += ".mp3";
- }
- if(audioFile2 != "" && audioFile2.indexOf(".mp3") == -1)
- {
- audioFile2 += ".mp3";
- }
- trace(audioFile1);
- trace(audioFile2);
- checkForAudio();
- }
- function checkForAudio()
- {
- snd.loadSound("glossary/audio/" + audioFile1);
- totalBytes = snd.getBytesTotal();
- trace(totalBytes);
- if(totalBytes > 0)
- {
- parent.audioIcon.gotoAndStop("rollOut");
- parent.audioIcon.enabled = true;
- }
- else
- {
- parent.audioIcon.gotoAndStop("disabled");
- parent.audioIcon.enabled = false;
- }
- }
- function clickedAudio()
- {
- loadSounds(audioFile1,audioFile2);
- }
- function loadSounds(file, file2)
- {
- snd.onLoad = function()
- {
- };
- snd2.onLoad = function()
- {
- };
- snd.onSoundComplete = function()
- {
- };
- trace("loadSoundsCalled");
- if(file.indexOf(".mp3") == -1)
- {
- file += ".mp3";
- }
- trace("file: " + file);
- if(file2 == null)
- {
- snd.onSoundComplete = function()
- {
- };
- snd.onLoad = playSound;
- snd.loadSound("glossary/audio/" + file);
- }
- if(file2 != null)
- {
- if(file2.indexOf(".mp3") == -1)
- {
- file2 += ".mp3";
- }
- trace("file2: " + file2);
- snd.loadSound("glossary/audio/" + file);
- snd2.onLoad = playSounds;
- snd2.loadSound("glossary/audio/" + file2);
- }
- }
- function playSound()
- {
- trace("playSound called");
- snd.start();
- }
- function playSounds()
- {
- trace("playSounds called");
- snd.onSoundComplete = function()
- {
- snd2.start();
- };
- snd.start();
- }
- stop();
- String.prototype.trim = function()
- {
- return this.rtrim().ltrim();
- };
- String.prototype.rtrim = function()
- {
- var i = this.length - 1;
- while(i >= 0 && this.charCodeAt(i) <= 32)
- {
- i--;
- }
- return this.substring(0,i + 1);
- };
- String.prototype.ltrim = function()
- {
- var i = 0;
- while(i < this.length && this.charCodeAt(i) <= 32)
- {
- i++;
- }
- return this.substring(i);
- };
- String.prototype.isWhiteSpace = function()
- {
- var i = 0;
- while(i < this.length)
- {
- if(this.charCodeAt(i) > 32)
- {
- return false;
- }
- i++;
- }
- return true;
- };
- String.prototype.toCharArray = function()
- {
- var chars = new Array(this.length);
- var i = 0;
- while(i < this.length)
- {
- chars[i] = this.charAt(i);
- i++;
- }
- return chars;
- };
- Array.prototype.charArrayToString = function()
- {
- var str = new String();
- var i = 0;
- while(i < this.length)
- {
- str += this[i];
- i++;
- }
- return str;
- };
- String.prototype.reverse = function()
- {
- var t = this.toCharArray();
- t.reverse();
- var s = t.charArrayToString();
- delete t;
- return s;
- };
- XML.prototype.ELEMENT_NODE = 1;
- XML.prototype.TEXT_NODE = 3;
- XML.prototype._inorderItr = function(node, fnPtr)
- {
- var stack = new Array();
- var node = node;
- while(true)
- {
- if(node)
- {
- stack.push(node);
- node = node.firstChild;
- }
- else
- {
- node = stack.pop();
- if(!node)
- {
- break;
- }
- fnPtr(node);
- node = node.nextSibling;
- }
- }
- delete stack;
- };
- XMLNode.prototype._inorderItr = XML.prototype._inorderItr;
- XML.prototype._inorderRec = function(node, fnPtr)
- {
- function helperR(node_xml)
- {
- if(node_xml == null)
- {
- return undefined;
- }
- this.fnPtr(node_xml);
- helperR(node_xml.firstChild);
- helperR(node_xml.nextSibling);
- }
- var outer = this;
- helperR(node);
- };
- XMLNode.prototype._inorderRec = XML.prototype._inorderRec;
- XMLNode.prototype.addProperty("text",this.ext_XML_GET_TEXT,this.ext_XML_SET_TEXT);
- XML.prototype.addProperty("text",this.ext_XML_GET_TEXT,this.ext_XML_SET_TEXT);
- XML.prototype.getElementsByTagName = function(tagName)
- {
- function processNode(node)
- {
- if(node.nodeName != null && node.nodeName == tagName)
- {
- nodelist.push(node);
- }
- }
- var nodelist = new Array();
- this._inorderItr(this,processNode);
- return nodelist;
- };
- XML.prototype.getElementsByTagNames = function()
- {
- function processNode(node)
- {
- var i = 0;
- while(i < args.length)
- {
- if(node.nodeName != null && node.nodeName == args[i])
- {
- trace("Found: " + args[i]);
- if(nodelists[i] == undefined)
- {
- nodelists[i] = new Array();
- }
- nodelists[i].push(node);
- break;
- }
- i++;
- }
- }
- var args = arguments;
- var nodelists = new Array(arguments.length);
- this._inorderItr(this,processNode);
- return nodelists;
- };
- XMLNode.prototype.getElementsByTagNames = XML.prototype.getElementsByTagNames;
- XMLNode.prototype.getElementsByTagName = XML.getElementsByTagName;
- XML.prototype.getAttribute = function(name)
- {
- return this.attributes[name];
- };
- XMLNode.prototype.getAttribute = XML.prototype.getAttribute;
- XML.prototype.setAttribute = function(name, value)
- {
- this.attributes[name] = value;
- };
- XMLNode.prototype.setAttribute = XML.prototype.setAttribute;
- XML.prototype.hasAttribute = function(name)
- {
- var attrs = this.attributes;
- for(var mc in attrs)
- {
- if(name == mc)
- {
- return true;
- }
- }
- return false;
- };
- XMLNode.prototype.hasAttribute = XML.prototype.hasAttribute;
- XML.prototype.removeAttribute = function(name)
- {
- var attr = this.attributes[name];
- delete this.attributes[name];
- return attr;
- };
- XMLNode.prototype.setAttribute = XML.prototype.setAttribute;
- XMLNode.prototype.getOwnerDocument = function()
- {
- var odc = this;
- var lastNode = this;
- while(odc)
- {
- lastNode = odc;
- odc = odc.parentNode;
- }
- return !(lastNode instanceof XML) ? null : lastNode;
- };
- XML.prototype.normalize = function()
- {
- function process(node)
- {
- nodeList.push(node);
- }
- var outer = this;
- var nodeList = new Array();
- this._inorderItr(this,process);
- var i = 0;
- while(i < nodeList.length)
- {
- var node = nodeList[i];
- if(node.nodeType == XML.prototype.TEXT_NODE && node.nodeValue.isWhiteSpace())
- {
- node.removeNode();
- }
- else if(node.nodeType == XML.prototype.TEXT_NODE)
- {
- node.nodeValue = node.nodeValue.trim();
- }
- i++;
- }
- delete nodeList;
- };
- XMLNode.prototype.getDepth = function()
- {
- var i = 0;
- var node = this;
- while(node)
- {
- node = node.parentNode;
- i++;
- }
- return i;
- };
- XML.prototype.getElementsWithAttribute = function(name, value)
- {
- function processNode(node)
- {
- if(value == null)
- {
- for(var mcz in node.attributes)
- {
- if(mcz == name)
- {
- nodeList.push(node);
- break;
- }
- }
- }
- else if(node.attributes[name] == value)
- {
- nodeList.push(node);
- }
- }
- if(name == null)
- {
- return undefined;
- }
- var nodeList = new Array();
- this._inorderItr(this,processNode);
- return nodeList;
- };
- XMLNode.prototype.getElementsWithAttribute = XML.prototype.getElementsWithAttribute;
- XMLNode.prototype.getPath = function(path)
- {
- function process(node)
- {
- trace(node.nodeName);
- if(node.nodeName != null && node.nodeName == currentPart && i < pathParts.length)
- {
- trace("Found: " + currentPart);
- partTable[i] = node.parentNode.getElementsByTagName(currentPart);
- currentPart = pathParts[++i];
- }
- }
- var i = 0;
- var pathParts = path.split("/");
- var currentPart = pathParts[i];
- var partTable = new Array();
- this._inorderItr(this,process);
- return partTable[partTable.length - 1];
- };
- XML.prototype.getPath = XMLNode.prototype.getPath;
- tf = new TextFormat();
- tf.font = "Myriad";
- tf.size = 14;
- tf.color = 13408563;
- tf.underline = true;
- tf2 = new TextFormat();
- tf2.font = "Myriad";
- tf2.size = 14;
- tf2.color = 0;
- sf = new FStyleFormat();
- sf.background = 16777164;
- init();
- english.tabIndex = 500;
- spanish.tabIndex = 501;
- audioIcon.tabIndex = 502;
- close.tabIndex = 503;
- a.tabIndex = 504;
- b.tabIndex = 505;
- c.tabIndex = 506;
- d.tabIndex = 507;
- e.tabIndex = 508;
- f.tabIndex = 509;
- g.tabIndex = 510;
- h.tabIndex = 511;
- i.tabIndex = 512;
- j.tabIndex = 513;
- k.tabIndex = 514;
- l.tabIndex = 515;
- m.tabIndex = 516;
- n.tabIndex = 517;
- o.tabIndex = 518;
- p.tabIndex = 519;
- q.tabIndex = 520;
- r.tabIndex = 521;
- s.tabIndex = 522;
- t.tabIndex = 523;
- u.tabIndex = 524;
- v.tabIndex = 525;
- w.tabIndex = 526;
- x.tabIndex = 527;
- y.tabIndex = 528;
- z.tabIndex = 529;
- modalBlocker.onRelease = function()
- {
- };
- modalBlocker.hitArea = this;
- modalBlocker.useHandCursor = false;
- close.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- close.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- close.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- close.onRelease = function()
- {
- _root.glossaryPopUp.unloadMovie();
- _root.enableBottomNav();
- };
- english.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- english.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- english.onRelease = function()
- {
- english.gotoAndStop("rollOver");
- english.enabled = false;
- spanish.gotoAndStop("rollOut");
- spanish.enabled = true;
- toggle = "en-sp";
- audioIcon.gotoAndStop("disabled");
- audioIcon.enabled = false;
- loadXMLDoc(lastClicked._name);
- };
- english.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- spanish.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- spanish.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- spanish.onRelease = function()
- {
- spanish.gotoAndStop("rollOver");
- spanish.enabled = false;
- english.gotoAndStop("rollOut");
- english.enabled = true;
- toggle = "sp-en";
- loadXMLDoc(lastClicked._name);
- };
- spanish.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- audioIcon.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- audioIcon.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- audioIcon.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- audioIcon.onRelease = function()
- {
- clickedAudio();
- };
- a.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- a.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- a.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- a.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- b.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- b.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- b.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- b.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- c.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- c.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- c.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- c.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- d.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- d.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- d.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- d.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- e.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- e.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- e.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- e.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- f.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- f.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- f.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- f.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- g.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- g.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- g.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- g.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- h.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- h.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- h.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- h.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- i.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- i.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- i.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- i.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- j.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- j.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- j.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- j.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- k.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- k.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- k.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- k.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- l.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- l.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- l.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- l.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- m.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- m.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- m.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- m.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- n.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- n.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- n.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- n.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- o.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- o.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- o.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- o.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- p.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- p.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- p.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- p.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- q.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- q.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- q.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- q.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- r.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- r.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- r.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- r.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- s.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- s.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- s.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- s.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- t.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- t.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- t.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- t.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- u.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- u.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- u.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- u.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- v.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- v.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- v.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- v.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- w.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- w.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- w.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- w.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- x.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- x.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- x.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- x.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- y.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- y.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- y.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- y.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
- z.onRelease = function()
- {
- loadXMLDoc(this._name);
- setLastClicked(this);
- };
- z.onRollOver = function()
- {
- this.gotoAndStop("rollOver");
- };
- z.onRollOut = function()
- {
- this.gotoAndStop("rollOut");
- };
- z.onReleaseOutside = function()
- {
- this.gotoAndStop("rollOut");
- };
-